package com.douqu.game.core.entity.battle;

import com.douqu.game.core.entity.EntityObject;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-03-05 18:29
 */
public class ConfigTemp extends EntityObject {

    private int id;

    private int lv;

    public ConfigTemp() {
    }

    public ConfigTemp(int id, int lv)
    {
        this.id = id;
        this.lv = lv;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLv() {
        return lv;
    }

    public void setLv(int lv) {
        this.lv = lv;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ConfigTemp)) return false;

        ConfigTemp that = (ConfigTemp) o;

        if (id != that.id) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id;
    }

    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", lv=" + lv +
                "} ";
    }
}
